package com.example.competionmanagebackend.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.competionmanagebackend.entity.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;

public interface UsersService extends IService<Users> {
    Users login(String userName, String password);
    Users getUserByUsername(String username);
    Page<Users> getUsersPage(int currentPage, int pageSize);
    List<Users> getAllUsers();
    void insertUser(Users user);
    void updateUser(Users user);
    void deleteUser(Integer id);
}